<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'        => config('admin.route.prefix'),
    'namespace'     => config('admin.route.namespace'),
    'middleware'    => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('admin.home');
    $router->resource('banners', 'BannerController');
    $router->resource('category', 'CategoryController');
    $router->resource('article', 'ArticleController');
    $router->resource('notice', 'NoticeController');
    $router->resource('photo', 'PhotoController');
    $router->resource('novel', 'NovelController');
    $router->resource('video', 'VideoController');
    $router->resource('config', 'ConfigController');

});
